import request from '@/utils/request'

// 查询试题答案选项列表
export function listQuAnswer(query) {
  return request({
    url: '/business/quAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询试题答案选项所有列表
export function listAllQuAnswer(query) {
  return request({
    url: '/business/quAnswer/listAll',
    method: 'get',
    params: query
  })
}

// 查询试题答案选项详细
export function getQuAnswer(id) {
  return request({
    url: '/business/quAnswer/getInfo/' + id,
    method: 'get'
  })
}

// 新增试题答案选项
export function addQuAnswer(data) {
  return request({
    url: '/business/quAnswer/add',
    method: 'post',
    data: data
  })
}

// 修改试题答案选项
export function updateQuAnswer(data) {
  return request({
    url: '/business/quAnswer/edit',
    method: 'post',
    data: data
  })
}

// 删除试题答案选项
export function delQuAnswer(id) {
  return request({
    url: '/business/quAnswer/remove/' + id,
    method: 'get'
  })
}
